package com.dhcc.cdc.busi.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.dhcc.core.framework.base.entity.DataEntity;


/**
 * 床位
 * 
 * @ClassName: CdcBedEntity
 * @Description: TODO
 * @author jumper
 * @date 2021-03-15 10:20:08
 */
@TableName("t_cdc_ct_bed") 
public class CdcBedEntity extends DataEntity<CdcBedEntity> {
	private static final long serialVersionUID = 1L;
	
	//索引码
	private String xcode;	
	//代码
	private String code;	
	//描述
	private String description;	
	//所属病房
	private Long roomId;
    @TableField(exist = false)
    private CdcRoomEntity room;
    @TableField(exist = false)
    private CdcLocationEntity location;
    @TableField(exist = false)
    private Long hospId;
	//业务数据类型
	private Long dataId;	
	public CdcRoomEntity getRoom() {
        return room;
    }
    public void setRoom(CdcRoomEntity room) {
        this.room = room;
    }
    public CdcLocationEntity getLocation() {
        return location;
    }
    public void setLocation(CdcLocationEntity location) {
        this.location = location;
    }
    public Long getHospId() {
        return hospId;
    }
    public void setHospId(Long hospId) {
        this.hospId = hospId;
    }
    //是否有效
	private Integer isActive;	

	/**
	 * 设置：索引码
	 */
	public void setXcode(String xcode) {
		this.xcode = xcode;
	}
	/**
	 * 获取：索引码
	 */
	public String getXcode() {
		return xcode;
	}
	/**
	 * 设置：代码
	 */
	public void setCode(String code) {
		this.code = code;
	}
	/**
	 * 获取：代码
	 */
	public String getCode() {
		return code;
	}
	/**
	 * 设置：描述
	 */
	public void setDescription(String description) {
		this.description = description;
	}
	/**
	 * 获取：描述
	 */
	public String getDescription() {
		return description;
	}
	/**
	 * 设置：所属病房
	 */
	public void setRoomId(Long roomId) {
		this.roomId = roomId;
	}
	/**
	 * 获取：所属病房
	 */
	public Long getRoomId() {
		return roomId;
	}
	/**
	 * 设置：业务数据类型
	 */
	public void setDataId(Long dataId) {
		this.dataId = dataId;
	}
	/**
	 * 获取：业务数据类型
	 */
	public Long getDataId() {
		return dataId;
	}
	/**
	 * 设置：是否有效
	 */
	public void setIsActive(Integer isActive) {
		this.isActive = isActive;
	}
	/**
	 * 获取：是否有效
	 */
	public Integer getIsActive() {
		return isActive;
	}
}
